<template>
  <div>
    <h1>CodeReceive</h1>
    <p>a: {{ a }}</p>
    <p>b: {{ b }}</p>
  </div>
</template>

<script>
export default {
  name: 'CodeReceive',
  data() {
    return {
      a: '',
      b: ''
    };
  },
  mounted() {
    this.parseUrlParams();
  },
  methods: {
    parseUrlParams() {
      const urlParams = new URLSearchParams(window.location.search);
      this.a = urlParams.get('a');
      this.b = urlParams.get('b');
    }
  }
}
</script>

<style>
/* 根据需要添加样式 */
</style>